home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMNSXPathExpression.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  108 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMNSXPathExpression.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMNSXPathExpression_h__
  6. #define __gen_nsIDOMNSXPathExpression_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMXPathResult; /* forward declaration */
  18.  
  19. class XPathException; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIDOMNSXPathExpression */
  23. #define NS_IDOMNSXPATHEXPRESSION_IID_STR "ce600ca8-e98a-4419-ad61-2f6d0cb0ecc8"
  24.  
  25. #define NS_IDOMNSXPATHEXPRESSION_IID \
  26.   {0xce600ca8, 0xe98a, 0x4419, \
  27.     { 0xad, 0x61, 0x2f, 0x6d, 0x0c, 0xb0, 0xec, 0xc8 }}
  28.  
  29. /**
  30.  * Interface for Mozilla specific XPathExpression functions.
  31.  */
  32. class NS_NO_VTABLE nsIDOMNSXPathExpression : public nsISupports {
  33.  public: 
  34.  
  35.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNSXPATHEXPRESSION_IID)
  36.  
  37.   /**
  38.    * Evaluate the expression with the given context. Similar to
  39.    * nsIDOMXPathExpression::evaluate(), except that this takes the context
  40.    * position and size too.
  41.    *
  42.    * @param contextNode       The context node
  43.    * @param contextPosition   The context position
  44.    * @param contextSize       The context size
  45.    * @param type              The needed result type
  46.    * @param result            The result
  47.    */
  48.   /* nsISupports evaluateWithContext (in nsIDOMNode contextNode, in unsigned long contextPosition, in unsigned long contextSize, in unsigned short type, in nsISupports result)  raises (XPathException, DOMException); */
  49.   NS_IMETHOD EvaluateWithContext(nsIDOMNode *contextNode, PRUint32 contextPosition, PRUint32 contextSize, PRUint16 type, nsISupports *result, nsISupports **_retval) = 0;
  50.  
  51. };
  52.  
  53. /* Use this macro when declaring classes that implement this interface. */
  54. #define NS_DECL_NSIDOMNSXPATHEXPRESSION \
  55.   NS_IMETHOD EvaluateWithContext(nsIDOMNode *contextNode, PRUint32 contextPosition, PRUint32 contextSize, PRUint16 type, nsISupports *result, nsISupports **_retval); 
  56.  
  57. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  58. #define NS_FORWARD_NSIDOMNSXPATHEXPRESSION(_to) \
  59.   NS_IMETHOD EvaluateWithContext(nsIDOMNode *contextNode, PRUint32 contextPosition, PRUint32 contextSize, PRUint16 type, nsISupports *result, nsISupports **_retval) { return _to EvaluateWithContext(contextNode, contextPosition, contextSize, type, result, _retval); } 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  62. #define NS_FORWARD_SAFE_NSIDOMNSXPATHEXPRESSION(_to) \
  63.   NS_IMETHOD EvaluateWithContext(nsIDOMNode *contextNode, PRUint32 contextPosition, PRUint32 contextSize, PRUint16 type, nsISupports *result, nsISupports **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->EvaluateWithContext(contextNode, contextPosition, contextSize, type, result, _retval); } 
  64.  
  65. #if 0
  66. /* Use the code below as a template for the implementation class for this interface. */
  67.  
  68. /* Header file */
  69. class nsDOMNSXPathExpression : public nsIDOMNSXPathExpression
  70. {
  71. public:
  72.   NS_DECL_ISUPPORTS
  73.   NS_DECL_NSIDOMNSXPATHEXPRESSION
  74.  
  75.   nsDOMNSXPathExpression();
  76.  
  77. private:
  78.   ~nsDOMNSXPathExpression();
  79.  
  80. protected:
  81.   /* additional members */
  82. };
  83.  
  84. /* Implementation file */
  85. NS_IMPL_ISUPPORTS1(nsDOMNSXPathExpression, nsIDOMNSXPathExpression)
  86.  
  87. nsDOMNSXPathExpression::nsDOMNSXPathExpression()
  88. {
  89.   /* member initializers and constructor code */
  90. }
  91.  
  92. nsDOMNSXPathExpression::~nsDOMNSXPathExpression()
  93. {
  94.   /* destructor code */
  95. }
  96.  
  97. /* nsISupports evaluateWithContext (in nsIDOMNode contextNode, in unsigned long contextPosition, in unsigned long contextSize, in unsigned short type, in nsISupports result)  raises (XPathException, DOMException); */
  98. NS_IMETHODIMP nsDOMNSXPathExpression::EvaluateWithContext(nsIDOMNode *contextNode, PRUint32 contextPosition, PRUint32 contextSize, PRUint16 type, nsISupports *result, nsISupports **_retval)
  99. {
  100.     return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102.  
  103. /* End of implementation class template. */
  104. #endif
  105.  
  106.  
  107. #endif /* __gen_nsIDOMNSXPathExpression_h__ */
  108.